<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>文档</title>
  <link href="./css/semantic/semantic.min.css" rel="stylesheet">
  <link href="./css/oscTree.css" rel="stylesheet">
  <link href="./css/markdown.css" rel="stylesheet">
  <link href="./css/index.css" rel="stylesheet">
</head>
<body>
  <div class="ui container">
    <div id="project-title">
      <div class="title-wrap">
        <div class="left">
          <i class="icon eye"></i>
          文档预览:
          <span id="preview-title"></span>
        </div>
        <div class="right">
          Export by Gitee
        </div>
      </div>
    </div>

    <div class="ui container" id="wiki-preview-container">
      <div id="wiki-preview">
        <div class="ui segment">
          <div class="ui grid page">
            <div class="three wide column doc-list">
              <div class="title">
                <a id="ex-all">
                  收缩全部章节
                </a>
              </div>
              <div class="ztree" id="tree"></div>
            </div>
            <div class="thirteen wide column doc-content">
              <div id="page-detail">
                <div class="title">
                </div>
                <div class="content markdown-body">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
  </div>
</body>
</html>
<script src="./js/jquery.min.js"></script>
<script src="./js/ztree.all.js"></script>
<script src="./js/jquery.ztree.exhide.min.js"></script>
<script>
  var zTreeObj;var expandStatus=true;$(document).ready(function(){var setting={view:{showLine:true,showIcon:true},callback:{onClick:function(e,treeId,treeNode){if(treeNode!==null&&!treeNode.isParent&&typeof(treeNode.children)==="undefined"){var sort_id=treeNode.sort_id;var content=json_data.content;for(var c in content){if(c==sort_id){$("#page-detail .title").html(treeNode.name);$("#page-detail .content").html(content[c]);return false}}}else{zTreeObj.expandNode(treeNode)}}},data:{simpleData:{enable:true}}};zTreeObj=$.fn.zTree.init($("#tree"),setting,json_data.title);var first_content=json_data.title[0];$("#page-detail .title").html(first_content.name);$("#page-detail .content").html(json_data.content[first_content.sort_id]);$("#preview-title").html(json_data.preview_title);$("#ex-all").on("click",function(e){zTreeObj.expandAll(!expandStatus);expandStatus=!expandStatus;if(expandStatus){$(this).text("收缩全部章节")}else{$(this).text("展开全部章节")}})});
</script><script>var json_data = {"preview_title":"\u5c0f\u9e7f\u76f4\u64ad\u63a5\u53e3\u6587\u6863","title":[{"id":"\u63a5\u53e3\u8bbf\u95ee\u89c4\u8303","pId":0,"name":"\u63a5\u53e3\u8bbf\u95ee\u89c4\u8303","parent":null,"order":1,"sort_id":61956,"extname":".markdown","isHidden":false,"content":"\u63a5\u53e3\u5730\u5740: http://admin.xiaolutv.com/Api;\n\napi_key\uff1a 1fc3d41307e8de3ac0da9e2f032d7b5b;\n\n\u4e3a\u7edf\u4e00\u89c4\u8303\uff0c\u73b0\u89c4\u5b9a\u8fd4\u56de\u7801  \n\u6210\u529f \u8fd4\u56de 1\uff0c\u5176\u4f59\u5404\u79cd\u72b6\u6001\u6309\u7167\u7f16\u53f7\u81ea\u7531\u8fd4\u56de \u003C 1 \u7684\u72b6\u6001\u7801\n\n\u4f8b\u5982\uff1a\n\nreturn json(array('code'=\u003E-1,'msg'=\u003E'\u5bc6\u7801\u9519\u8bef'));\n\nreturn json(array('code'=\u003E-2,'msg'=\u003E'\u7528\u6237\u540d\u9519\u8bef'));\n\nreturn json(array('code'=\u003E1, 'msg'=\u003E'\u6dfb\u52a0\u7528\u6237\u6210\u529f'));\n  \u5ba2\u6237\u7aef\u63a5\u53e3\u4f20\u8f93\u89c4\u5219:\n\n    1.\u7528method\u53c2\u6570(base64)\u6765\u52a8\u6001\u8c03\u7528\u4e0d\u540c\u7684\u63a5\u53e3,\u63a5\u53e3\u5730\u5740\u7edf\u4e00\u4e3a http://admin.xiaolutv.com/Api\n    2.\u5c06\u8981\u4f20\u8fc7\u6765\u7684\u53c2\u6570\u7ec4\u6210\u4e00\u4e2a\u6570\u7ec4\uff0c\u6570\u7ec4\u6dfb\u52a0timestamp\u5143\u7d20(\u5f53\u524d\u65f6\u95f4\u6233,\u7cbe\u786e\u5230\u79d2)\uff0c\u5c06\u6570\u7ec4\u7684\u952e\u503c\u6309\u7167\u81ea\u7136\u6392\u5e8f\u4ece\u5927\u5230\u5c0f\u6392\u5e8f\n    3.\u5c06\u6570\u7ec4\u7ec4\u6210 key=val\u0026key=val\u7684\u5f62\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u5c06\u5b57\u7b26\u4e32\u4e0eapi_key\u8fde\u63a5\u5728\u4e00\u8d77,\u7528md5\u52a0\u5bc6\u4e00\u6b21(32\u4f4d\u5c0f\u5199),\u5f97\u5230sign\n    4.\u5c06sign\u6dfb\u52a0\u5230\u53c2\u6570\u6570\u7ec4\u4e2d\n    5.\u5c06\u53c2\u6570\u6570\u7ec4\u8f6c\u6362\u6210json\u7528post\u8bf7\u6c42\u8bf7\u6c42\u63a5\u53e3\u5730\u5740,key\u503c\u4e3aparam\n\nphp \u793a\u4f8b\u4ee3\u7801\n\n        //\u751f\u6210\u7b7e\u540d\n       private  function  create_sign($data){\n        $api_key = \"1fc3d41307e8de3ac0da9e2f032d7b5b\";\n        krsort($data);//\u5c06\u53c2\u6570\u6570\u7ec4key\u503c\u6309\u7167\u81ea\u7136\u6392\u5e8f\u4ece\u5927\u5230\u5c0f\u6392\u5e8f\n        $sb = '';\n        foreach($data as $key=\u003E$val){ //\u5c06\u6392\u5e8f\u540e\u7684\u53c2\u6570\u6570\u7ec4\u6309\u7167key=val\u0026key=val\u7684\u5f62\u5f0f\u7ec4\u6210\u5b57\u7b26\u4e32\uff0c\u5c06\u5b57\u7b26\u4e32\u4e0eapi_key\u8fde\u63a5\uff0c\u7528md5\u52a0\u5bc6\u4e00\u6b21(32\u4f4d\u5c0f\u5199)\uff0c\u5f97\u5230sign\n            $sb .= $key . '=' . $val . '\u0026';\n        }\n        $sb .= $api_key;\n        $sign = md5($sb);\n        return $sign;\n    }\n\n//\u5ba2\u6237\u7aef\u5fae\u4fe1\u6388\u6743\u767b\u9646\u540e\u8c03\u7528\u63a5\u53e3\u793a\u4f8b\n\n     public   function  test(){\n\n        $openid='o7gRa0o9hhWa1eoH';\n        $api_url='http://admin.xiaolutv.com/Api';\n        $data['openid']=$openid;\n        $data['nickname']='\u256e(\u256f\u25bd\u2570)\u256d';\n        $data['sex']=1;\n        $data['province']='\u6e56\u5357';\n        $data['city']='\u957f\u6c99';\n        $data['headimgurl']='http://wx.qlogo.cn/mmopen/XiaeJeoCQ1EIo7G0Q7A1ggvIy9cG49I51ZBUKjvInatSEYP6gH9QvaO20g1w6TQJc61N7cSdjibo6uyelxwzLLxG6Mhiaic2Nf8v/0';\n        $data['method']=base64_encode('addWxUser');\n        $data['timestamp']=time();\n        $sign=$this-\u003Ecreate_sign($data);\n        $data['sign']=$sign;\n        $arr['param']=json_encode($data);\n        $result=curlPost($api_url,$arr);\n    }\n\n\u4e0a\u9762\u53c2\u6570\u6700\u540e\u751f\u6210\u7684json   \n$arr['param']='{\"openid\":\"o7gRa0o9hhWa1eoH\",\"nickname\":\"\\u256e(\\u256f\\u25bd\\u2570)\\u256d\",\"sex\":1,\"province\":\"\\u6e56\\u5357\",\"city\":\"\\u957f\\u6c99\",\"headimgurl\":\"http:\\/\\/wx.qlogo.cn\\/mmopen\\/XiaeJeoCQ1EIo7G0Q7A1ggvIy9cG49I51ZBUKjvInatSEYP6gH9QvaO20g1w6TQJc61N7cSdjibo6uyelxwzLLxG6Mhiaic2Nf8v\\/0\",\"method\":\"YWRkV3hVc2Vy\",\"timestamp\":1507531278,\"sign\":\"2d7f44580f138fda081c1d6dc00fdd2a\"}';"},{"id":"\u83b7\u53d6\u76f4\u64ad\u5217\u8868","pId":0,"name":"\u83b7\u53d6\u76f4\u64ad\u5217\u8868","parent":null,"order":4,"sort_id":65149,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d  getLiveList\n\u53c2\u6570    shop_id\n\n\u8fd4\u56de\u503c\u7c7b\u578b  json\n\n{\n   \n    \"code\": 1,\n    \"msg\": \"\u5217\u8868\u83b7\u53d6\u6210\u529f\",\n    \"list\": [\n        {\n            \"id\": \"7\",            //\u76f4\u64adid\n\n            \"shop_id\": \"8\",       //\u5546\u6237id\n\n            \"activity_name\": \"\u6d4b\u8bd5\u6d3b\u52a8\u4e09\", //\u76f4\u64ad\u6807\u9898\n            \"activity_desc\": \"\u6d4b\u8bd5\u6d3b\u52a8\u4e09\", //\u76f4\u64ad\u63cf\u8ff0 \n            \"cover_img\": \"http: //img.xiaolutv.com/xl_616e85b6e34e907a.png\",  //\u5c01\u9762\u56fe\u7247\n            \"speaker\": \"qweq\",  //\u4e3b\u64ad\u540d\u79f0\n            \"start_time\": \"1507035060\",  //\u5f00\u59cb\u65f6\u95f4\n            \"end_time\": \"1507259460\",    //\u7ed3\u675f\u65f6\u95f4 \n            \"redeem_code\": \"3123\",\n            \"scene\": \"1\", //\u573a\u666f 1\u6d3b\u52a8 2\u4f1a\u8bae 3\u57f9\u8bad\n            \"max_buy_num\": \"1231\",     //\u6700\u5927\u8d2d\u4e70\u6570\u91cf\n            \"attribute\": \"3\",//\u5c5e\u6027 1\u516c\u5f00 2 \u52a0\u5bc6 3\u4ed8\u8d39\n            \"password\": \"\",\n            \"price\": \"12.00\",  //\u4ed8\u8d39\u76f4\u64ad\u65f6\u7684\u4ef7\u683c\n            \"add_time\": \"1507035123\",\n            \"shop_ids\": \"11\",\n            \"goods_ids\": \"4\",\n            \"like_num\" :\"0\"\uff0c //\u70b9\u8d5e\u6570\u91cf\n            \"viewer_count\"\uff1a\"0\", //\u89c2\u770b\u4eba\u6570\n            \"share_count\"\uff1a\"0\",//\u5206\u4eab\u6570\u91cf\n            \"enroll_count\"\uff1a\"0\"\uff0c//\u62a5\u540d\u4eba\u6570  \n            \"sale_num\": 20,//\u9500\u552e\u6570\u91cf\n            \"sale_money\": \"100.00\",//\u9500\u552e\u91d1\u989d\n            \"concern_money\": \"222.00\"//\u793c\u7269\u91d1\u989d   \n            \"shop_name\": \"\u7b2c\u4e00\u4e2a\u54c1\u724c\u5546\",//\u5546\u6237\u540d\u79f0\n            \"area\": \"\u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a\",//\u7701\u5e02\u533a\n            \"address\": \"\u5929\u9a6c\u5c0f\u533a\"\uff0c//\u5730\u5740\n            \"head_img\":'' //\u5546\u6237\u5934\u50cf\n        }\n   \n    ]\n}"},{"id":"\u9a8c\u8bc1\u76f4\u64ad\u65f6\u95f4","pId":0,"name":"\u9a8c\u8bc1\u76f4\u64ad\u65f6\u95f4","parent":null,"order":5,"sort_id":78175,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d  checkLiveTime\n\n\u53c2\u6570  live_id\n\n\u8fd4\u56de json\n\n{\n\n    \"code\": 1,\n    \"msg\": \"\",\n    \"flag\": \"1\"  //1 \u53ef\u76f4\u64ad  0  \u65f6\u95f4\u672a\u5230\n}"},{"id":"\u76f4\u64ad\u7ed3\u675f\u6570\u636e\u63a5\u53e3","pId":0,"name":"\u76f4\u64ad\u7ed3\u675f\u6570\u636e\u63a5\u53e3","parent":null,"order":6,"sort_id":79920,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d endLiveData\n\n\u53c2\u6570  live_id  //\u5f53\u524d\u76f4\u64ad\u6d3b\u52a8ID\n\n\u8fd4\u56de\u6570\u636e   json\n\n{\n\n    \"code\": 1,\n    \"msg\": \"\u6210\u529f\",\n    \"data\": {\n        \"viewer_count\": 0,//\u89c2\u770b\u4eba\u6570\n        \"sale_num\": 20,//\u9500\u552e\u6570\u91cf\n        \"sale_money\": \"100.00\",//\u9500\u552e\u91d1\u989d\n        \"concern_money\": \"222.00\"//\u793c\u7269\u91d1\u989d\n        }\n\n}"},{"id":"\u6ce8\u518c\u7528\u6237","pId":0,"name":"\u6ce8\u518c\u7528\u6237","parent":null,"order":7,"sort_id":62166,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d\u79f0   \naddWxUser\n\n\u53c2\u6570 \n\nopenid      \u5fae\u4fe1openid \n\nnickname    \u5fae\u4fe1\u6635\u79f0\n\nsex         \u6027\u522b \n\nprovince    \u7701\u4efd\n\ncity        \u57ce\u5e02\n\nheadimgurl  \u5934\u50cf \n\nmethod      \u65b9\u6cd5\u540d\u79f0  \n  \ntimestamp   \u65f6\u95f4\u6233\n\nsign        \u7b7e\u540d \n\n\u8fd4\u56de\u503c  \u7c7b\u578b json\n\nstring(71) \"{\"code\":1,\"msg\":\"\\u767b\\u5f55\\u6210\\u529f!\",\"im_id\":\"787a9a7ca9c5bce6\"}\""},{"id":"\u83b7\u53d6\u76f4\u64ad\u5546\u54c1","pId":0,"name":"\u83b7\u53d6\u76f4\u64ad\u5546\u54c1","parent":null,"order":8,"sort_id":79955,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d getLiveGoods\n\n\u53c2\u6570 live_id  \u5f53\u524d\u76f4\u64ad\u6d3b\u52a8ID\n\n\u8fd4\u56de\u7ed3\u679c  json\n\n{\n\n    \"code\": 1,\n    \"msg\": \"\u6210\u529f\",\n    \"data\": [\n        {\n            \"id\": 3,\n            \"shop_id\": 12,\n            \"goods_name\": \"\u4e09\u751f\u82b1\u7cfb\u5217\", //\u5546\u54c1\u540d\u79f0\n            \"goods_brief\": \"\u7f8e\u5973\u90fd\u5728\u7528\",//\u5546\u54c1\u7b80\u4ecb\n            \"original_price\": \"123.00\", //\u539f\u4ef7\n            \"sale_price\": \"1.00\", //\u672c\u6b21\u6d3b\u52a8\u4ef7\u683c\n            \"stock\": 123, //\u5e93\u5b58\n            \"cover_img\": \"http://img.xiaolutv.com/goods2.jpg\", //\u5c01\u9762\u56fe\n            \"goods_img\": \"http://img.xiaolutv.com/xl_83938d5edd32fb7d.png;http://img.xiaolutv.com/xl_d022bef6dc8f5670.png;http://img.xiaolutv.com/xl_1b130f177c1d9c6b.png\",//\u5546\u54c1\u56fe\u7247\n            \"goods_desc\": \"111\", //\u5546\u54c1\u63cf\u8ff0\n            \"add_time\": 1505422189, //\u6dfb\u52a0\u65f6\u95f4\n            \"status\": 1 //\u5546\u54c1\u72b6\u6001\n        }\n    ]\n}"},{"id":"\u7ed1\u5b9a\u624b\u673a\u53f7\u7801","pId":0,"name":"\u7ed1\u5b9a\u624b\u673a\u53f7\u7801","parent":null,"order":10,"sort_id":85442,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d bindingMobile\n\n\u53c2\u6570  \nmobile  //\u624b\u673a\u53f7\u7801\n\nunionid //\u5f53\u524d\u5fae\u4fe1\u767b\u9646\u7684\u5e94\u7528id\n\nvcode  //\u9a8c\u8bc1\u7801\n\n\u8fd4\u56de  json\n\n{\n\n    \"code\": 1,\n    \"data\": {\n        \"id\": 1,\n        \"shop_name\": \"\u7b2c\u4e8c\u4e2a\u54c1\u724c\u5546\", //\u5546\u6237\u540d\u79f0\n        \"live_id\": 10001, //\u76f4\u64ad\u53f7\n        \"head_img\": \"\", //\u5546\u6237\u5934\u50cf\n        \"area\": \"\u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a\",\n        \"address\": \"456\", //\u8857\u9053\u5730\u5740\n        \"industry_id\": 1, //\u884c\u4e1aID \n        \"linkman\": \"\u8054\u7cfb\u4eba\",\n        \"mobile\": \"15111429008\",\n        \"shop_type\": 1,\n        \"live_auth\": 1, //\u662f\u5426\u6709\u76f4\u64ad\u6743\u9650  0\u6ca1\u6709 1\u6709\n        \"add_time\": 1505164608, //\u6dfb\u52a0\u65f6\u95f4\n        \"auth_time\": 1505164608, //\u6388\u6743\u65f6\u95f4\n        \"admin_user_id\": 4,\n        \"wx_unionid\": \"0\", //\u5e94\u7528id\n        \"status\": 0, //\u72b6\u6001 1\u6b63\u5e38 0 \u7981\u7528\n        \"concern_count\": 0 //\u5173\u6ce8\u4eba\u6570\n    },\n    \"msg\": \"\"\n}\n\n\u6ca1\u6709\u5546\u6237\u7684\u60c5\u51b5\u8fd4\u56de \n\n{\n\n    \"code\": -1,\n    \"data\": \"\",\n    \"msg\": \"\u60a8\u8fd8\u4e0d\u662f\u4e3b\u64ad\"\n}\n\n"},{"id":"\u4e3b\u64ad\u7533\u8bf7","pId":0,"name":"\u4e3b\u64ad\u7533\u8bf7","parent":null,"order":11,"sort_id":85456,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d  addUserApply\n\n\u53c2\u6570 \n\n    name//\u59d3\u540d\n    area:   //\u7701\u5e02\u533a  \u4f8b\u5982  \u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a,\n    mobile   //\u624b\u673a\u53f7\u7801,\n    vcode    //\u9a8c\u8bc1\u7801\n    unionid  //\u5fae\u4fe1\u5e94\u7528id\n \n\u8fd4\u56de json\n\n{\n\n    \"code\": 1,\n    \"data\": \"\",\n    \"msg\": \"\u7533\u8bf7\u5df2\u63d0\u4ea4,\u8bf7\u7b49\u5f85\u5de5\u4f5c\u4eba\u5458\u5ba1\u6838\"\n}"},{"id":"\u83b7\u53d6\u9a8c\u8bc1\u7801","pId":0,"name":"\u83b7\u53d6\u9a8c\u8bc1\u7801","parent":null,"order":11,"sort_id":85389,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d getCode\n\n\u53c2\u6570  mobile \n\n\u8fd4\u56de  json\n\n{\n\n    \"code\": 1,\n    \"data\": \"\",\n    \"msg\": \"\u9a8c\u8bc1\u7801\u5df2\u6210\u529f\u53d1\u9001\uff01\"\n}\n\n "},{"id":"\u9a8c\u8bc1\u4e3b\u64ad","pId":0,"name":"\u9a8c\u8bc1\u4e3b\u64ad","parent":null,"order":12,"sort_id":86700,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d  checkShop\n\n\u53c2\u6570    unionid\n\n\u8fd4\u56de  json\n\n{\n\n\"code\": -2,\n\"data\": \"\",\n\"msg\": \"\u60a8\u8fd8\u6ca1\u6709\u7ed1\u5b9a\u624b\u673a\u53f7!\"\n}\n\n\n{\n\n\"code\": -3,\n\"data\": \"\",\n\"msg\": \"\u4f60\u8fd8\u4e0d\u662f\u4e3b\u64ad\uff0c\u8bf7\u586b\u5199\u7533\u8bf7!\"\n}\n\n\n{\n\n  \"code\": -1,\n\n  \"data\": \"\",\n\n  \"msg\": \"\u60a8\u7684\u4e3b\u64ad\u7533\u8bf7\u6b63\u5728\u5ba1\u6838,\u6709\u4efb\u4f55\u7591\u95ee\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!\"\n\n}\n\n\n\n//\u6210\u529f\n\n{\n\n\"code\": 1,\n\n\"data\": {\n\n    \"id\": 1,\n    \"shop_name\": \"\u7b2c\u4e8c\u4e2a\u54c1\u724c\u5546\", //\u5546\u6237\u540d\u79f0\n    \"live_id\": 10001, //\u76f4\u64ad\u53f7\n    \"head_img\": \"\", //\u5546\u6237\u5934\u50cf\n    \"area\": \"\u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a\",\n    \"address\": \"456\", //\u8857\u9053\u5730\u5740\n    \"industry_id\": 1, //\u884c\u4e1aID \n    \"linkman\": \"\u8054\u7cfb\u4eba\",\n    \"mobile\": \"15111429008\",\n    \"shop_type\": 1,\n    \"live_auth\": 1, //\u662f\u5426\u6709\u76f4\u64ad\u6743\u9650  0\u6ca1\u6709 1\u6709\n    \"add_time\": 1505164608, //\u6dfb\u52a0\u65f6\u95f4\n    \"auth_time\": 1505164608, //\u6388\u6743\u65f6\u95f4\n    \"admin_user_id\": 4,\n    \"wx_unionid\": \"0\", //\u5e94\u7528id\n    \"status\": 0, //\u72b6\u6001 1\u6b63\u5e38 0 \u7981\u7528\n    \"concern_count\": 0 //\u5173\u6ce8\u4eba\u6570\n},\n\n\"msg\": \"\"\n\n}"},{"id":"\u53d1\u9001\u793c\u7269","pId":0,"name":"\u53d1\u9001\u793c\u7269","parent":null,"order":13,"sort_id":189068,"extname":".markdown","isHidden":false,"content":"{\n\n        'userAction': 9,//\u6d88\u606f\u7c7b\u578b\n        'userId': loginInfo.identifier, //imId\n        'nickName': loginInfo.identifierNick,//IM\u6635\u79f0\n        'headPic': '',\n        'msg': '',\n        'giftId':1,  //\u793c\u7269ID\n        'giftName':'\u6e38\u8247' //\u793c\u7269\u540d\u79f0\n    }"},{"id":"\u76f4\u64ad\u9996\u9875\u63a5\u53e3","pId":0,"name":"\u76f4\u64ad\u9996\u9875\u63a5\u53e3","parent":null,"order":14,"sort_id":212984,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d\ngetAllLive\n\u53c2\u6570  \nmethod \u65b9\u6cd5\u540d\u79f0\ntimestamp \u65f6\u95f4\u6233\n\n\u8fd4\u56de\u7ed3\u679c json\n\n{\n\n\t\"code\": 1,\n\t\"msg\": \"\u5217\u8868\u83b7\u53d6\u6210\u529f\",\n\t\"list\": [{\n\t\t\"id\": 3, //\u76f4\u64adid\n\t\t\"shop_id\": 11, //\u5546\u6237id\n\t\t\"activity_name\": \"\u6d4b\u8bd5\u8d26\u53f7\u6d3b\u52a8\", //\u76f4\u64ad\u540d\u79f0\n\t\t\"activity_desc\": \"\u6d3b\u52a8\u7b80\u4ecb\", //\u76f4\u64ad\u7b80\u4ecb\n\t\t\"cover_img\": \"http:\\/\\/img.xiaolutv.com\\/xl_680ae827ffde0f4b.png\", //\u5c01\u9762\u56fe\u7247\n\t\t\"speaker\": \"\u4e3b\u8bb2\u4eba\",//\u4e3b\u64ad\u540d\u79f0\n\t\t\"start_time\": 1507035060,//\u5f00\u59cb\u65f6\u95f4\n\t\t\"end_time\": 1519190420,//\u7ed3\u675f\u65f6\u95f4\n\t\t\"redeem_code\": \"123\",\n\t\t\"scene\": 1,\n\t\t\"max_buy_num\": 123,\n\t\t\"attribute\": 1,\n\t\t\"password\": \"\",\n\t\t\"price\": \"123.00\",\n\t\t\"add_time\": 1505425064,\n\t\t\"shop_ids\": \"11,13\",\n\t\t\"goods_ids\": \"1,2\",\n\t\t\"upstream_address\": \"\",\n\t\t\"rtmp_downstream_address\": \"\",\n\t\t\"like_count\": 0, //\u70b9\u8d5e\u6570\u91cf\n\t\t\"viewer_count\": 0,//\u89c2\u770b\u6570\u91cf\n\t\t\"share_count\": 0,//\u8f6c\u53d1\u6570\u91cf\n\t\t\"enroll_count\": 0,//\u62a5\u540d\u6570\u91cf\n\t\t\"sale_num\": 0,//\u9500\u552e\u91cf\n\t\t\"sale_money\": \"0.00\",//\u9500\u552e\u91d1\u989d\n\t\t\"concern_money\": \"0.00\",//\u793c\u7269\u6536\u5165\n\t\t\"live_url\": \"http:\\/\\/www.xiaolutv.com\\/index\\/index\\/live?live_id=3\",//\u64ad\u653e\u9875\u9762\n                \"status\":1, //\u76f4\u64ad\u72b6\u6001  1 \u76f4\u64ad\u4e2d  2 \u5373\u5c06\u76f4\u64ad  3 \u76f4\u64ad\u7ed3\u675f\n\t\t\"goods\": [{\n\t\t\t\"id\": 1,//\u5546\u54c1id\n\t\t\t\"goods_name\": \"\u5546\u54c1\u540d\u79f0\",//\u5546\u54c1\u540d\u79f0\n\t\t\t\"goods_brief\": \"\u5546\u54c1\u7b80\u4ecb\",//\u5546\u54c1\u7b80\u4ecb\n\t\t\t\"cover_img\": \"http:\\/\\/img.xiaolutv.com\\/goods6.jpg\",//\u5546\u54c1\u5c01\u9762\u56fe\u7247\n\t\t\t\"sale_price\": \"12.00\",//\u6d3b\u52a8\u4ef7\u683c\n\t\t\t\"original_price\": \"1231.00\"//\u539f\u4ef7\n\t\t}, {\n\t\t\t\"id\": 2,\n\t\t\t\"goods_name\": \"\u5546\u54c1\u540d\u79f01\",\n\t\t\t\"goods_brief\": \"\u5546\u54c1\u7b80\u4ecb2\",\n\t\t\t\"cover_img\": \"http:\\/\\/img.xiaolutv.com\\/goods1.jpg\",\n\t\t\t\"sale_price\": \"11.00\",\n\t\t\t\"original_price\": \"1231.00\"\n\t\t}],\n\t\t\"shop\": {\n\t\t\t\"id\": 11,//\u5546\u6237id\n\t\t\t\"shop_name\": \"\u6d4b\u8bd5\u5546\u62373\",//\u5546\u6237\u540d\u79f0\n\t\t\t\"head_img\": \"http:\\/\\/img.xiaolutv.com\\/thumb_543738a6f1ec7.jpg\"//\u5546\u6237\u5934\u50cf\n\t\t}\n\t}]\n}"},{"id":"\u4e2a\u4eba\u4e2d\u5fc3\u63a5\u53e3","pId":0,"name":"\u4e2a\u4eba\u4e2d\u5fc3\u63a5\u53e3","parent":null,"order":15,"sort_id":214580,"extname":".markdown","isHidden":false,"content":"\u65b9\u6cd5\u540d\n\npersonalCenter\n\n\u53c2\u6570 \n\nmobile //\u624b\u673a\u53f7\u767b\u9646\u4f20\u624b\u673a\u53f7\n\nunionid//\u5fae\u4fe1\u767b\u9646\u4f20\u5e94\u7528id\n\nmethod//\u65b9\u6cd5\u540d\n\ntimestamp//\u65f6\u95f4\u6233\n\nsign //\u7b7e\u540d\n\n\u8fd4\u56de\u503c\n\n{\n\n  \"code\": 1,\n\n  \"msg\": \"\u6570\u636e\u83b7\u53d6\u6210\u529f!\",\n\n  \"userInfo\": {\n\n    \"id\": \"18\",\n    \"nickname\": \"()\", //\u5fae\u4fe1\u6635\u79f0\n    \"mobile\": \"18508400551\",//\u624b\u673a\u53f7\u7801\n    \"openid\": \"\",\n    \"web_openid\": \"odpPUvofkm8jAk9bPNR1cLzaKEHw\",\n    \"sex\": \"1\",\n    \"province\": \"\u6e56\u5357\",\n    \"city\": \"\u957f\u6c99\",\n    \"headimgurl\": \"http://wx.qlogo.cn/mmhead/ajNVdqHZLLD7lF3ugwOI92wFFsPiasG1Cc4lvpvTs8bmF8GDHHt3w3Q/0\",//\u5fae\u4fe1\u5934\u50cf\n    \"addtime\": \"1509373738\",\n    \"unionid\": \"ogAhIwA83zh3mU9nXJ-Ujf2XKDcM\",\n    \"is_subscribe\": \"0\",\n    \"im_id\": \"09551b21178f54fc\",\n    \"shop\": {\n      \"id\": \"12\",\n      \"shop_name\": \"\u8001\u738b\u5f00\u64ad\u4e86\", //\u5546\u6237\u540d\u79f0\n      \"head_img\": \"http://img.xiaolutv.com/thumb_543738a6f1ec7.jpg\",//\u5546\u6237\u5934\u50cf\n      \"concern_count\": \"0\", //\u7c89\u4e1d\u6570\u91cf\n      \"total_money\": \"0.20\"//\u603b\u91d1\u989d\n    }\n\n  }\n\n}\n"}],"content":{"61956":"\u003Cp\u003E\u63a5\u53e3\u5730\u5740: \u003Ca target=\"_blank\" href=\"http://admin.xiaolutv.com/Api\"\u003Ehttp://admin.xiaolutv.com/Api\u003C/a\u003E;\u003C/p\u003E\n\n\u003Cp\u003Eapi_key\uff1a 1fc3d41307e8de3ac0da9e2f032d7b5b;\u003C/p\u003E\n\n\u003Cp\u003E\u4e3a\u7edf\u4e00\u89c4\u8303\uff0c\u73b0\u89c4\u5b9a\u8fd4\u56de\u7801\u003Cbr\u003E\n\u6210\u529f \u8fd4\u56de 1\uff0c\u5176\u4f59\u5404\u79cd\u72b6\u6001\u6309\u7167\u7f16\u53f7\u81ea\u7531\u8fd4\u56de \u0026lt; 1 \u7684\u72b6\u6001\u7801\u003C/p\u003E\n\n\u003Cp\u003E\u4f8b\u5982\uff1a\u003C/p\u003E\n\n\u003Cp\u003Ereturn json(array('code'=\u0026gt;-1,'msg'=\u0026gt;'\u5bc6\u7801\u9519\u8bef'));\u003C/p\u003E\n\n\u003Cp\u003Ereturn json(array('code'=\u0026gt;-2,'msg'=\u0026gt;'\u7528\u6237\u540d\u9519\u8bef'));\u003C/p\u003E\n\n\u003Cp\u003Ereturn json(array('code'=\u0026gt;1, 'msg'=\u0026gt;'\u6dfb\u52a0\u7528\u6237\u6210\u529f'));\n  \u5ba2\u6237\u7aef\u63a5\u53e3\u4f20\u8f93\u89c4\u5219:\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E1.\u7528method\u53c2\u6570(base64)\u6765\u52a8\u6001\u8c03\u7528\u4e0d\u540c\u7684\u63a5\u53e3,\u63a5\u53e3\u5730\u5740\u7edf\u4e00\u4e3a http://admin.xiaolutv.com/Api\n2.\u5c06\u8981\u4f20\u8fc7\u6765\u7684\u53c2\u6570\u7ec4\u6210\u4e00\u4e2a\u6570\u7ec4\uff0c\u6570\u7ec4\u6dfb\u52a0timestamp\u5143\u7d20(\u5f53\u524d\u65f6\u95f4\u6233,\u7cbe\u786e\u5230\u79d2)\uff0c\u5c06\u6570\u7ec4\u7684\u952e\u503c\u6309\u7167\u81ea\u7136\u6392\u5e8f\u4ece\u5927\u5230\u5c0f\u6392\u5e8f\n3.\u5c06\u6570\u7ec4\u7ec4\u6210 key=val\u0026amp;key=val\u7684\u5f62\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u5c06\u5b57\u7b26\u4e32\u4e0eapi_key\u8fde\u63a5\u5728\u4e00\u8d77,\u7528md5\u52a0\u5bc6\u4e00\u6b21(32\u4f4d\u5c0f\u5199),\u5f97\u5230sign\n4.\u5c06sign\u6dfb\u52a0\u5230\u53c2\u6570\u6570\u7ec4\u4e2d\n5.\u5c06\u53c2\u6570\u6570\u7ec4\u8f6c\u6362\u6210json\u7528post\u8bf7\u6c42\u8bf7\u6c42\u63a5\u53e3\u5730\u5740,key\u503c\u4e3aparam\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003Ephp \u793a\u4f8b\u4ee3\u7801\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E    //\u751f\u6210\u7b7e\u540d\n   private  function  create_sign($data){\n    $api_key = \"1fc3d41307e8de3ac0da9e2f032d7b5b\";\n    krsort($data);//\u5c06\u53c2\u6570\u6570\u7ec4key\u503c\u6309\u7167\u81ea\u7136\u6392\u5e8f\u4ece\u5927\u5230\u5c0f\u6392\u5e8f\n    $sb = '';\n    foreach($data as $key=\u0026gt;$val){ //\u5c06\u6392\u5e8f\u540e\u7684\u53c2\u6570\u6570\u7ec4\u6309\u7167key=val\u0026amp;key=val\u7684\u5f62\u5f0f\u7ec4\u6210\u5b57\u7b26\u4e32\uff0c\u5c06\u5b57\u7b26\u4e32\u4e0eapi_key\u8fde\u63a5\uff0c\u7528md5\u52a0\u5bc6\u4e00\u6b21(32\u4f4d\u5c0f\u5199)\uff0c\u5f97\u5230sign\n        $sb .= $key . '=' . $val . '\u0026amp;';\n    }\n    $sb .= $api_key;\n    $sign = md5($sb);\n    return $sign;\n}\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E//\u5ba2\u6237\u7aef\u5fae\u4fe1\u6388\u6743\u767b\u9646\u540e\u8c03\u7528\u63a5\u53e3\u793a\u4f8b\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E public   function  test(){\n\n    $openid='o7gRa0o9hhWa1eoH';\n    $api_url='http://admin.xiaolutv.com/Api';\n    $data['openid']=$openid;\n    $data['nickname']='\u256e(\u256f\u25bd\u2570)\u256d';\n    $data['sex']=1;\n    $data['province']='\u6e56\u5357';\n    $data['city']='\u957f\u6c99';\n    $data['headimgurl']='http://wx.qlogo.cn/mmopen/XiaeJeoCQ1EIo7G0Q7A1ggvIy9cG49I51ZBUKjvInatSEYP6gH9QvaO20g1w6TQJc61N7cSdjibo6uyelxwzLLxG6Mhiaic2Nf8v/0';\n    $data['method']=base64_encode('addWxUser');\n    $data['timestamp']=time();\n    $sign=$this-\u0026gt;create_sign($data);\n    $data['sign']=$sign;\n    $arr['param']=json_encode($data);\n    $result=curlPost($api_url,$arr);\n}\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E\u4e0a\u9762\u53c2\u6570\u6700\u540e\u751f\u6210\u7684json\u003Cbr\u003E\n$arr['param']='{\"openid\":\"o7gRa0o9hhWa1eoH\",\"nickname\":\"\\u256e(\\u256f\\u25bd\\u2570)\\u256d\",\"sex\":1,\"province\":\"\\u6e56\\u5357\",\"city\":\"\\u957f\\u6c99\",\"headimgurl\":\"http:\\/\\/wx.qlogo.cn\\/mmopen\\/XiaeJeoCQ1EIo7G0Q7A1ggvIy9cG49I51ZBUKjvInatSEYP6gH9QvaO20g1w6TQJc61N7cSdjibo6uyelxwzLLxG6Mhiaic2Nf8v\\/0\",\"method\":\"YWRkV3hVc2Vy\",\"timestamp\":1507531278,\"sign\":\"2d7f44580f138fda081c1d6dc00fdd2a\"}';\u003C/p\u003E\n","65149":"\u003Cp\u003E\u65b9\u6cd5\u540d  getLiveList\n\u53c2\u6570    shop_id\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de\u503c\u7c7b\u578b  json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"msg\": \"\u5217\u8868\u83b7\u53d6\u6210\u529f\",\n\"list\": [\n    {\n        \"id\": \"7\",            //\u76f4\u64adid\n\n        \"shop_id\": \"8\",       //\u5546\u6237id\n\n        \"activity_name\": \"\u6d4b\u8bd5\u6d3b\u52a8\u4e09\", //\u76f4\u64ad\u6807\u9898\n        \"activity_desc\": \"\u6d4b\u8bd5\u6d3b\u52a8\u4e09\", //\u76f4\u64ad\u63cf\u8ff0 \n        \"cover_img\": \"http: //img.xiaolutv.com/xl_616e85b6e34e907a.png\",  //\u5c01\u9762\u56fe\u7247\n        \"speaker\": \"qweq\",  //\u4e3b\u64ad\u540d\u79f0\n        \"start_time\": \"1507035060\",  //\u5f00\u59cb\u65f6\u95f4\n        \"end_time\": \"1507259460\",    //\u7ed3\u675f\u65f6\u95f4 \n        \"redeem_code\": \"3123\",\n        \"scene\": \"1\", //\u573a\u666f 1\u6d3b\u52a8 2\u4f1a\u8bae 3\u57f9\u8bad\n        \"max_buy_num\": \"1231\",     //\u6700\u5927\u8d2d\u4e70\u6570\u91cf\n        \"attribute\": \"3\",//\u5c5e\u6027 1\u516c\u5f00 2 \u52a0\u5bc6 3\u4ed8\u8d39\n        \"password\": \"\",\n        \"price\": \"12.00\",  //\u4ed8\u8d39\u76f4\u64ad\u65f6\u7684\u4ef7\u683c\n        \"add_time\": \"1507035123\",\n        \"shop_ids\": \"11\",\n        \"goods_ids\": \"4\",\n        \"like_num\" :\"0\"\uff0c //\u70b9\u8d5e\u6570\u91cf\n        \"viewer_count\"\uff1a\"0\", //\u89c2\u770b\u4eba\u6570\n        \"share_count\"\uff1a\"0\",//\u5206\u4eab\u6570\u91cf\n        \"enroll_count\"\uff1a\"0\"\uff0c//\u62a5\u540d\u4eba\u6570  \n        \"sale_num\": 20,//\u9500\u552e\u6570\u91cf\n        \"sale_money\": \"100.00\",//\u9500\u552e\u91d1\u989d\n        \"concern_money\": \"222.00\"//\u793c\u7269\u91d1\u989d   \n        \"shop_name\": \"\u7b2c\u4e00\u4e2a\u54c1\u724c\u5546\",//\u5546\u6237\u540d\u79f0\n        \"area\": \"\u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a\",//\u7701\u5e02\u533a\n        \"address\": \"\u5929\u9a6c\u5c0f\u533a\"\uff0c//\u5730\u5740\n        \"head_img\":'' //\u5546\u6237\u5934\u50cf\n    }\n\n]\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","78175":"\u003Cp\u003E\u65b9\u6cd5\u540d  checkLiveTime\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570  live_id\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"msg\": \"\",\n\"flag\": \"1\"  //1 \u53ef\u76f4\u64ad  0  \u65f6\u95f4\u672a\u5230\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","79920":"\u003Cp\u003E\u65b9\u6cd5\u540d endLiveData\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570  live_id  //\u5f53\u524d\u76f4\u64ad\u6d3b\u52a8ID\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de\u6570\u636e   json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"msg\": \"\u6210\u529f\",\n\"data\": {\n    \"viewer_count\": 0,//\u89c2\u770b\u4eba\u6570\n    \"sale_num\": 20,//\u9500\u552e\u6570\u91cf\n    \"sale_money\": \"100.00\",//\u9500\u552e\u91d1\u989d\n    \"concern_money\": \"222.00\"//\u793c\u7269\u91d1\u989d\n    }\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","62166":"\u003Cp\u003E\u65b9\u6cd5\u540d\u79f0\u003Cbr\u003E\naddWxUser\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570 \u003C/p\u003E\n\n\u003Cp\u003Eopenid      \u5fae\u4fe1openid \u003C/p\u003E\n\n\u003Cp\u003Enickname    \u5fae\u4fe1\u6635\u79f0\u003C/p\u003E\n\n\u003Cp\u003Esex         \u6027\u522b \u003C/p\u003E\n\n\u003Cp\u003Eprovince    \u7701\u4efd\u003C/p\u003E\n\n\u003Cp\u003Ecity        \u57ce\u5e02\u003C/p\u003E\n\n\u003Cp\u003Eheadimgurl  \u5934\u50cf \u003C/p\u003E\n\n\u003Cp\u003Emethod      \u65b9\u6cd5\u540d\u79f0  \u003C/p\u003E\n\n\u003Cp\u003Etimestamp   \u65f6\u95f4\u6233\u003C/p\u003E\n\n\u003Cp\u003Esign        \u7b7e\u540d \u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de\u503c  \u7c7b\u578b json\u003C/p\u003E\n\n\u003Cp\u003Estring(71) \"{\"code\":1,\"msg\":\"\\u767b\\u5f55\\u6210\\u529f!\",\"im_id\":\"787a9a7ca9c5bce6\"}\"\u003C/p\u003E\n","79955":"\u003Cp\u003E\u65b9\u6cd5\u540d getLiveGoods\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570 live_id  \u5f53\u524d\u76f4\u64ad\u6d3b\u52a8ID\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de\u7ed3\u679c  json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"msg\": \"\u6210\u529f\",\n\"data\": [\n    {\n        \"id\": 3,\n        \"shop_id\": 12,\n        \"goods_name\": \"\u4e09\u751f\u82b1\u7cfb\u5217\", //\u5546\u54c1\u540d\u79f0\n        \"goods_brief\": \"\u7f8e\u5973\u90fd\u5728\u7528\",//\u5546\u54c1\u7b80\u4ecb\n        \"original_price\": \"123.00\", //\u539f\u4ef7\n        \"sale_price\": \"1.00\", //\u672c\u6b21\u6d3b\u52a8\u4ef7\u683c\n        \"stock\": 123, //\u5e93\u5b58\n        \"cover_img\": \"http://img.xiaolutv.com/goods2.jpg\", //\u5c01\u9762\u56fe\n        \"goods_img\": \"http://img.xiaolutv.com/xl_83938d5edd32fb7d.png;http://img.xiaolutv.com/xl_d022bef6dc8f5670.png;http://img.xiaolutv.com/xl_1b130f177c1d9c6b.png\",//\u5546\u54c1\u56fe\u7247\n        \"goods_desc\": \"111\", //\u5546\u54c1\u63cf\u8ff0\n        \"add_time\": 1505422189, //\u6dfb\u52a0\u65f6\u95f4\n        \"status\": 1 //\u5546\u54c1\u72b6\u6001\n    }\n]\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","85442":"\u003Cp\u003E\u65b9\u6cd5\u540d bindingMobile\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570\u003Cbr\u003E\nmobile  //\u624b\u673a\u53f7\u7801\u003C/p\u003E\n\n\u003Cp\u003Eunionid //\u5f53\u524d\u5fae\u4fe1\u767b\u9646\u7684\u5e94\u7528id\u003C/p\u003E\n\n\u003Cp\u003Evcode  //\u9a8c\u8bc1\u7801\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de  json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"data\": {\n    \"id\": 1,\n    \"shop_name\": \"\u7b2c\u4e8c\u4e2a\u54c1\u724c\u5546\", //\u5546\u6237\u540d\u79f0\n    \"live_id\": 10001, //\u76f4\u64ad\u53f7\n    \"head_img\": \"\", //\u5546\u6237\u5934\u50cf\n    \"area\": \"\u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a\",\n    \"address\": \"456\", //\u8857\u9053\u5730\u5740\n    \"industry_id\": 1, //\u884c\u4e1aID \n    \"linkman\": \"\u8054\u7cfb\u4eba\",\n    \"mobile\": \"15111429008\",\n    \"shop_type\": 1,\n    \"live_auth\": 1, //\u662f\u5426\u6709\u76f4\u64ad\u6743\u9650  0\u6ca1\u6709 1\u6709\n    \"add_time\": 1505164608, //\u6dfb\u52a0\u65f6\u95f4\n    \"auth_time\": 1505164608, //\u6388\u6743\u65f6\u95f4\n    \"admin_user_id\": 4,\n    \"wx_unionid\": \"0\", //\u5e94\u7528id\n    \"status\": 0, //\u72b6\u6001 1\u6b63\u5e38 0 \u7981\u7528\n    \"concern_count\": 0 //\u5173\u6ce8\u4eba\u6570\n},\n\"msg\": \"\"\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n\n\u003Cp\u003E\u6ca1\u6709\u5546\u6237\u7684\u60c5\u51b5\u8fd4\u56de \u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": -1,\n\"data\": \"\",\n\"msg\": \"\u60a8\u8fd8\u4e0d\u662f\u4e3b\u64ad\"\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","85456":"\u003Cp\u003E\u65b9\u6cd5\u540d  addUserApply\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570 \u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003Ename//\u59d3\u540d\narea:   //\u7701\u5e02\u533a  \u4f8b\u5982  \u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a,\nmobile   //\u624b\u673a\u53f7\u7801,\nvcode    //\u9a8c\u8bc1\u7801\nunionid  //\u5fae\u4fe1\u5e94\u7528id\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E\u8fd4\u56de json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"data\": \"\",\n\"msg\": \"\u7533\u8bf7\u5df2\u63d0\u4ea4,\u8bf7\u7b49\u5f85\u5de5\u4f5c\u4eba\u5458\u5ba1\u6838\"\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","85389":"\u003Cp\u003E\u65b9\u6cd5\u540d getCode\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570  mobile \u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de  json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"data\": \"\",\n\"msg\": \"\u9a8c\u8bc1\u7801\u5df2\u6210\u529f\u53d1\u9001\uff01\"\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","86700":"\u003Cp\u003E\u65b9\u6cd5\u540d  checkShop\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570    unionid\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de  json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\n\u003Cp\u003E\"code\": -2,\n\"data\": \"\",\n\"msg\": \"\u60a8\u8fd8\u6ca1\u6709\u7ed1\u5b9a\u624b\u673a\u53f7!\"\n}\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\n\u003Cp\u003E\"code\": -3,\n\"data\": \"\",\n\"msg\": \"\u4f60\u8fd8\u4e0d\u662f\u4e3b\u64ad\uff0c\u8bf7\u586b\u5199\u7533\u8bf7!\"\n}\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\n\u003Cp\u003E\"code\": -1,\u003C/p\u003E\n\n\u003Cp\u003E\"data\": \"\",\u003C/p\u003E\n\n\u003Cp\u003E\"msg\": \"\u60a8\u7684\u4e3b\u64ad\u7533\u8bf7\u6b63\u5728\u5ba1\u6838,\u6709\u4efb\u4f55\u7591\u95ee\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!\"\u003C/p\u003E\n\n\u003Cp\u003E}\u003C/p\u003E\n\n\u003Cp\u003E//\u6210\u529f\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\n\u003Cp\u003E\"code\": 1,\u003C/p\u003E\n\n\u003Cp\u003E\"data\": {\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"id\": 1,\n\"shop_name\": \"\u7b2c\u4e8c\u4e2a\u54c1\u724c\u5546\", //\u5546\u6237\u540d\u79f0\n\"live_id\": 10001, //\u76f4\u64ad\u53f7\n\"head_img\": \"\", //\u5546\u6237\u5934\u50cf\n\"area\": \"\u6e56\u5357\u7701;\u957f\u6c99\u5e02;\u5cb3\u9e93\u533a\",\n\"address\": \"456\", //\u8857\u9053\u5730\u5740\n\"industry_id\": 1, //\u884c\u4e1aID \n\"linkman\": \"\u8054\u7cfb\u4eba\",\n\"mobile\": \"15111429008\",\n\"shop_type\": 1,\n\"live_auth\": 1, //\u662f\u5426\u6709\u76f4\u64ad\u6743\u9650  0\u6ca1\u6709 1\u6709\n\"add_time\": 1505164608, //\u6dfb\u52a0\u65f6\u95f4\n\"auth_time\": 1505164608, //\u6388\u6743\u65f6\u95f4\n\"admin_user_id\": 4,\n\"wx_unionid\": \"0\", //\u5e94\u7528id\n\"status\": 0, //\u72b6\u6001 1\u6b63\u5e38 0 \u7981\u7528\n\"concern_count\": 0 //\u5173\u6ce8\u4eba\u6570\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E},\u003C/p\u003E\n\n\u003Cp\u003E\"msg\": \"\"\u003C/p\u003E\n\n\u003Cp\u003E}\u003C/p\u003E\n","189068":"\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E    'userAction': 9,//\u6d88\u606f\u7c7b\u578b\n    'userId': loginInfo.identifier, //imId\n    'nickName': loginInfo.identifierNick,//IM\u6635\u79f0\n    'headPic': '',\n    'msg': '',\n    'giftId':1,  //\u793c\u7269ID\n    'giftName':'\u6e38\u8247' //\u793c\u7269\u540d\u79f0\n}\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E","212984":"\u003Cp\u003E\u65b9\u6cd5\u540d\ngetAllLive\n\u53c2\u6570\u003Cbr\u003E\nmethod \u65b9\u6cd5\u540d\u79f0\ntimestamp \u65f6\u95f4\u6233\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de\u7ed3\u679c json\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"code\": 1,\n\"msg\": \"\u5217\u8868\u83b7\u53d6\u6210\u529f\",\n\"list\": [{\n    \"id\": 3, //\u76f4\u64adid\n    \"shop_id\": 11, //\u5546\u6237id\n    \"activity_name\": \"\u6d4b\u8bd5\u8d26\u53f7\u6d3b\u52a8\", //\u76f4\u64ad\u540d\u79f0\n    \"activity_desc\": \"\u6d3b\u52a8\u7b80\u4ecb\", //\u76f4\u64ad\u7b80\u4ecb\n    \"cover_img\": \"http:\\/\\/img.xiaolutv.com\\/xl_680ae827ffde0f4b.png\", //\u5c01\u9762\u56fe\u7247\n    \"speaker\": \"\u4e3b\u8bb2\u4eba\",//\u4e3b\u64ad\u540d\u79f0\n    \"start_time\": 1507035060,//\u5f00\u59cb\u65f6\u95f4\n    \"end_time\": 1519190420,//\u7ed3\u675f\u65f6\u95f4\n    \"redeem_code\": \"123\",\n    \"scene\": 1,\n    \"max_buy_num\": 123,\n    \"attribute\": 1,\n    \"password\": \"\",\n    \"price\": \"123.00\",\n    \"add_time\": 1505425064,\n    \"shop_ids\": \"11,13\",\n    \"goods_ids\": \"1,2\",\n    \"upstream_address\": \"\",\n    \"rtmp_downstream_address\": \"\",\n    \"like_count\": 0, //\u70b9\u8d5e\u6570\u91cf\n    \"viewer_count\": 0,//\u89c2\u770b\u6570\u91cf\n    \"share_count\": 0,//\u8f6c\u53d1\u6570\u91cf\n    \"enroll_count\": 0,//\u62a5\u540d\u6570\u91cf\n    \"sale_num\": 0,//\u9500\u552e\u91cf\n    \"sale_money\": \"0.00\",//\u9500\u552e\u91d1\u989d\n    \"concern_money\": \"0.00\",//\u793c\u7269\u6536\u5165\n    \"live_url\": \"http:\\/\\/www.xiaolutv.com\\/index\\/index\\/live?live_id=3\",//\u64ad\u653e\u9875\u9762\n            \"status\":1, //\u76f4\u64ad\u72b6\u6001  1 \u76f4\u64ad\u4e2d  2 \u5373\u5c06\u76f4\u64ad  3 \u76f4\u64ad\u7ed3\u675f\n    \"goods\": [{\n        \"id\": 1,//\u5546\u54c1id\n        \"goods_name\": \"\u5546\u54c1\u540d\u79f0\",//\u5546\u54c1\u540d\u79f0\n        \"goods_brief\": \"\u5546\u54c1\u7b80\u4ecb\",//\u5546\u54c1\u7b80\u4ecb\n        \"cover_img\": \"http:\\/\\/img.xiaolutv.com\\/goods6.jpg\",//\u5546\u54c1\u5c01\u9762\u56fe\u7247\n        \"sale_price\": \"12.00\",//\u6d3b\u52a8\u4ef7\u683c\n        \"original_price\": \"1231.00\"//\u539f\u4ef7\n    }, {\n        \"id\": 2,\n        \"goods_name\": \"\u5546\u54c1\u540d\u79f01\",\n        \"goods_brief\": \"\u5546\u54c1\u7b80\u4ecb2\",\n        \"cover_img\": \"http:\\/\\/img.xiaolutv.com\\/goods1.jpg\",\n        \"sale_price\": \"11.00\",\n        \"original_price\": \"1231.00\"\n    }],\n    \"shop\": {\n        \"id\": 11,//\u5546\u6237id\n        \"shop_name\": \"\u6d4b\u8bd5\u5546\u62373\",//\u5546\u6237\u540d\u79f0\n        \"head_img\": \"http:\\/\\/img.xiaolutv.com\\/thumb_543738a6f1ec7.jpg\"//\u5546\u6237\u5934\u50cf\n    }\n}]\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n","214580":"\u003Cp\u003E\u65b9\u6cd5\u540d\u003C/p\u003E\n\n\u003Cp\u003EpersonalCenter\u003C/p\u003E\n\n\u003Cp\u003E\u53c2\u6570 \u003C/p\u003E\n\n\u003Cp\u003Emobile //\u624b\u673a\u53f7\u767b\u9646\u4f20\u624b\u673a\u53f7\u003C/p\u003E\n\n\u003Cp\u003Eunionid//\u5fae\u4fe1\u767b\u9646\u4f20\u5e94\u7528id\u003C/p\u003E\n\n\u003Cp\u003Emethod//\u65b9\u6cd5\u540d\u003C/p\u003E\n\n\u003Cp\u003Etimestamp//\u65f6\u95f4\u6233\u003C/p\u003E\n\n\u003Cp\u003Esign //\u7b7e\u540d\u003C/p\u003E\n\n\u003Cp\u003E\u8fd4\u56de\u503c\u003C/p\u003E\n\n\u003Cp\u003E{\u003C/p\u003E\n\n\u003Cp\u003E\"code\": 1,\u003C/p\u003E\n\n\u003Cp\u003E\"msg\": \"\u6570\u636e\u83b7\u53d6\u6210\u529f!\",\u003C/p\u003E\n\n\u003Cp\u003E\"userInfo\": {\u003C/p\u003E\n\u003Cdiv class=\"white\"\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\"id\": \"18\",\n\"nickname\": \"()\", //\u5fae\u4fe1\u6635\u79f0\n\"mobile\": \"18508400551\",//\u624b\u673a\u53f7\u7801\n\"openid\": \"\",\n\"web_openid\": \"odpPUvofkm8jAk9bPNR1cLzaKEHw\",\n\"sex\": \"1\",\n\"province\": \"\u6e56\u5357\",\n\"city\": \"\u957f\u6c99\",\n\"headimgurl\": \"http://wx.qlogo.cn/mmhead/ajNVdqHZLLD7lF3ugwOI92wFFsPiasG1Cc4lvpvTs8bmF8GDHHt3w3Q/0\",//\u5fae\u4fe1\u5934\u50cf\n\"addtime\": \"1509373738\",\n\"unionid\": \"ogAhIwA83zh3mU9nXJ-Ujf2XKDcM\",\n\"is_subscribe\": \"0\",\n\"im_id\": \"09551b21178f54fc\",\n\"shop\": {\n  \"id\": \"12\",\n  \"shop_name\": \"\u8001\u738b\u5f00\u64ad\u4e86\", //\u5546\u6237\u540d\u79f0\n  \"head_img\": \"http://img.xiaolutv.com/thumb_543738a6f1ec7.jpg\",//\u5546\u6237\u5934\u50cf\n  \"concern_count\": \"0\", //\u7c89\u4e1d\u6570\u91cf\n  \"total_money\": \"0.20\"//\u603b\u91d1\u989d\n}\n\u003C/pre\u003E\u003C/div\u003E\u003C/div\u003E\n\u003Cp\u003E}\u003C/p\u003E\n\n\u003Cp\u003E}\u003C/p\u003E\n"}}</script>